package com.briup.sms.service;

import com.briup.sms.entity.Category;
import com.briup.sms.entity.extend.CategoryExtend;

import java.util.List;

/**
 * @Author :xuyang
 * @DateTime:2023/12/27 11:15
 * @Version :v1.0.0
 * ClassName:CategoryService
 * Package  :com.briup.sms.service
 * Description:分类
 */
public interface CategoryService {
    List<CategoryExtend> findCategoryInfo();

    List<Category> findCategoryOneLevel();

    List<CategoryExtend> findCategoryByOneLevel(Integer id);

    void addCategory(Category category);

    List<Category> findByName(String name);

    void delete(Integer id);
}

